From: Sergio Costas Rodriguez Date: Tue, 24 Jun 2025 12:31:40 +0000 (+0200) Subject: authPrompt: Notify error messages in GDM login/unlock X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~119^2~13^2^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cb1e3664c00575061e10ed4e861abf1edfb5a12f;p=gnome-shell.git authPrompt: Notify error messages in GDM login/unlock When there is an error during GDM login or unlock (for example, typing a wrong password), a text message is shown, but nothing is said by the screen reader. This patch fixes this, by notifying any error set in the auth prompt. Part-of: (cherry picked from commit 9121b7ca13455b23094b866b65d8793bd3824793) --- diff --git a/js/gdm/authPrompt.js b/js/gdm/authPrompt.js index aa2d6f1bd..32a36c960 100644 --- a/js/gdm/authPrompt.js +++ b/js/gdm/authPrompt.js @@ -1,5 +1,6 @@ import Clutter from 'gi://Clutter'; import GLib from 'gi://GLib'; +import Atk from 'gi://Atk'; import GObject from 'gi://GObject'; import Pango from 'gi://Pango'; import Shell from 'gi://Shell'; @@ -571,6 +572,7 @@ export const AuthPrompt = GObject.registerClass({ this._message.remove_all_transitions(); this._message.text = message; this._message.opacity = 255; + this.get_accessible().emit('notification', message, Atk.Live.ASSERTIVE); } else { this._message.opacity = 0; }